<%--
  User: Integra
  Date: 03.03.2009
  Time: 2:37:22
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<html>
<link rel="icon" href="favicon.ico" type="image/x-icon">
<f:view locale="#{localeManager.locale}">
    <f:loadBundle var="msgs" basename="messages"/>
    <head>
        <title><h:outputText value="#{msgs['title']}"/></title>
        <link href="olga.css" rel="stylesheet" type="text/css">
    </head>
    <body>
        <h:form id="formshowallperson">
            <%@include file="logoPanel.jspf"%>
            <%@include file="navigationPanel.jspf"%>
            <h1>Users</h1>
            <h:dataTable value="#{showPersons.persons}" var="person" styleClass="tableStyle" >
             <h:column headerClass="columnHeader" >
                 <f:facet name="header">
                     <h:outputText value="Id"></h:outputText>
                 </f:facet>
                 <h:outputText value="#{person.id}" ></h:outputText>
             </h:column>

             <h:column headerClass="columnHeader">
                 <f:facet name="header">
                     <h:outputText value="Name"></h:outputText>
                 </f:facet>
                 <h:outputText value="#{person.name}"></h:outputText>
             </h:column>

             <h:column headerClass="columnHeader">
                 <f:facet name="header">
                     <h:outputText value="Surname"></h:outputText>
                 </f:facet>
                 <h:outputText value="#{person.surname}"></h:outputText>
             </h:column>

             <h:column headerClass="columnHeader">
                 <f:facet name="header">
                     <h:outputText value="Group"></h:outputText>
                 </f:facet>
                 <h:outputText value="#{person.group}"></h:outputText>
             </h:column>

            </h:dataTable>
        </h:form>
    </body>
</f:view>
</html>